package cn.nawang.ebeim.client.dto;

import cn.nawang.ebeim.client.process.Process;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 信息传递中介层
 * Created by GanJc on 2016/1/20.
 */
public class ClientDto {

    public Map<String,Process> uploadProcesses = new HashMap();

    public Map<String,Process> downloadProcesses = new HashMap();

    public List<Process> getUploadProcess() {
        return new ArrayList<>(uploadProcesses.values());
    }

    public void addUploadProcess(Process uploadProcess) {
        this.uploadProcesses.put(uploadProcess.getName(),uploadProcess);
    }

    public List<Process> getDownloadProcesses() {
        return new ArrayList<>(downloadProcesses.values());
    }

    public void addDownloadProcess(Process downloadProcess) {
        this.downloadProcesses.put(downloadProcess.getName(),downloadProcess);
    }

}
